package com.ys.controller.api.outer;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.ys.entity.business.TsApiLog;
import com.ys.service.log.ApiLogService;
import com.ys.timer.TimerAdvancedApiDataDaily;
import com.ys.vo.ApiResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;
import java.util.List;

@Controller
@RequestMapping("/api/outer/advanced")
public class ApiOuterAdvancedController {

    private static final Logger logger = LoggerFactory.getLogger(ApiOuterAdvancedController.class);

	@Autowired
	private TimerAdvancedApiDataDaily timerAdvancedApiDataDaily;

	@RequestMapping("/test8")
	@ResponseBody
	public void test8(HttpServletRequest request, HttpServletResponse response) throws InterruptedException {
		timerAdvancedApiDataDaily.getYgReport0();
	}

	@RequestMapping("/test7")
	@ResponseBody
	public void test7(HttpServletRequest request, HttpServletResponse response) throws InterruptedException {
		timerAdvancedApiDataDaily.getHqReport0();
	}

    @RequestMapping("/test6")
    @ResponseBody
    public void test6(HttpServletRequest request, HttpServletResponse response) throws InterruptedException {
        timerAdvancedApiDataDaily.getHqReport1();
    }

    @RequestMapping("/test5")
    @ResponseBody
    public void test5(HttpServletRequest request, HttpServletResponse response) throws InterruptedException {
        timerAdvancedApiDataDaily.getSynchronousAdId();
    }

}
